package com.qfedu.service.feign;

import com.qfedu.fmmall.beans.ShoppingCartVo;
import com.qfedu.service.feign.fallback.OrderItemAddClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "orderitem-add",fallback = OrderItemAddClientFallback.class)
public interface OrderItemAddClient {

    @PostMapping("/item/save")
    public int addOrderItem(@RequestBody List<ShoppingCartVo> list, String orderId);
}
